//
//  LZAVPlayerManager.h
//  LZMusicPlayer
//
//  Created by wulanzhou on 2016/10/18.
//  Copyright © 2016年 wulanzhou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>


@protocol LZAVPlayerDelegate <NSObject>

@optional

- (void)playMusicProgress:(float)progress playTime:(float)time playDuration:(float)duration;

@end

/**
 播放网络音乐
 */
@interface LZAVPlayerManager : NSObject

@property (nonatomic,readonly) AVPlayer *player;

@property (nonatomic,assign) id<LZAVPlayerDelegate> delegate;

+ (LZAVPlayerManager *)shareInstance;

- (void)playingWithURLs:(NSArray <NSURL *> *)urls;
- (void)playingWithURL:(NSURL *)musicURL;

- (void)prevMusic;
- (void)nextMusic;

- (void)reset;

@end
